package org.example.test.service.impl;

import org.example.test.entity.Record;
import org.example.test.mapper.RecordMapper;
import org.example.test.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    RecordMapper recordMapper;
    @Override
    public List<Record> findAll(String recordNew) {
        return recordMapper.findAll(recordNew);
    }

    @Override
    public int delete(Integer recordId) {
        return recordMapper.delete(recordId);
    }

    @Override
    public int add(Record record) {
        return recordMapper.add(record);
    }

    @Override
    public int update(Record record) {
        return recordMapper.update(record);
    }
}
